//
//  Logger.h
//  YuiKe
//
//  Created by gang.wang.china on 11-8-30.
//  Copyright 2011年 gang.wang.china. All rights reserved.
//

#ifndef YuiKe_Logger_h
#define YuiKe_Logger_h
#endif
#import <UIKit/UIKit.h>

#pragma once
//works in DEBUG mode only
#ifndef __OPTIMIZE__         
#define DebugLog(s, ...) NSLog(@"%s(%d): %@", __FUNCTION__, __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__])
#define DebugLogx(s, ...) NSLog(@"%s(%d): %@", __FUNCTION__, __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__])
       
#define DebugLogCLASZ(clasz,s, ...) NSLog(@"%@(%d): %@", clasz.description, __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__])
#else
#define DebugLog(s, ...) 
#define DebugLogx(s, ...)
#define DebugLogCLASZ(s, ...) 
#endif




//#ifdef __OPTIMIZE__  
//-(BOOL) respondsToSelector:(SEL)aSelector {  
//    printf("SELECTOR: %s\n", [NSStringFromSelector(aSelector) UTF8String]);  
//    return [super respondsToSelector:aSelector];  
//}  
//#endif  


